package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    List<Commodity> selectAll();

    int updateByPrimaryKey(Commodity record);

    void updateNumber(@Param("number") Integer number, @Param("id") Long id);
}